package test.y2019.november;

import cn.hutool.core.lang.Console;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2019/11/8 14:03
 */
public class November1 {
    public static void main(String[] args) {
        String la = "HuoGuo_火锅,ShaoKao_烧烤,ChuanChuan_串串,YinPin_咖啡饮品,ZhongCan_中餐,XiCan_西餐";
        List<String> strings = Arrays.asList(la.split(","));
        List<String> collect = strings.stream().map(i -> i.split("_")[0]).collect(Collectors.toList());
        String result = "HuoGuo";

        if (la.contains("HuoGuo")) {
            System.out.println("------------");
        }


        if (collect.contains(result)) {
            Console.error("..");
        } else {
            System.out.println("........................................");
        }
    }
}
